package com.example.everying.service.content;/*
 * 项目名称: everything
 * 文件名: PublishTemplateService
 * 作者: 张泽阳
 * 日期: 2025/8/8
 * 描述:
 */

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.everying.model.dto.content.PublishTemplatePageDto;
import com.example.everying.model.entity.content.PublishTemplate;
import com.example.everying.utils.Result;

public interface PublishTemplateService extends IService<PublishTemplate> {
    Result<?> addTemplate(PublishTemplate publishTemplate);

    Result<?> updateTemplate(PublishTemplate publishTemplate);

    Result<?> deleteTemplateById(String id);

    Result<?> templateList();

    Result<?> templateListByPublishType(PublishTemplate templateListByPublishType);

    Result<?> selectPage(PublishTemplatePageDto publishTemplatePageDto);

    Result<?> useTemplate(PublishTemplate publishTemplate);
}
